<script setup>
import NavMenu from '../components/NavMenu.vue'
</script>

<template>
  <el-container>
    <el-header class="header">东软云医院</el-header>
    <el-container class="container">
      <el-aside width="200px" class="aside">
        <NavMenu></NavMenu>
      </el-aside>
      <el-main class="content">
        <router-view></router-view> <!-- 注意这里改为小写 router-view -->
      </el-main>
    </el-container>
  </el-container>
</template>

<style>
/* 样式保持不变 */
.header {
  background-color: #C6E2FF;
}

.container {
  height: calc(100vh - 60px);
}

.aside {
  background-color: #D9ECFF;
}

.content {
  background-color: #ECF5FF;
}
</style>